package uml.view.panels;

import javax.swing.JTabbedPane;

import uml.util.UMLConstants;
import uml.view.UMLContainerView;

/**
 * A specialization of UMLContainerView designed to provided appropriate default properties 
 * for a UML package object.
 * 
 * @author Neil Obetz
 *
 */

public class PackageView extends UMLContainerView
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1591624983782995506L;

	/**
	 * Constructs a default PackageView object.
	 */
	
	public PackageView ()
	{
		super ();
		setSize (UMLConstants.PACKAGE_SIZE);
		
		JTabbedPane tabbedPanel = new JTabbedPane ();
		tabbedPanel.setTabPlacement (JTabbedPane.TOP);
		tabbedPanel.addTab ("Package", null, null);
		tabbedPanel.setBackground (UMLConstants.PACKAGE_COLOR);
		add (tabbedPanel);
		
		setOpaque (false);
		setVisible (true);
	}
}
